package com.tutu.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.tutu.commons.pojo.Product;
import com.tutu.commons.to.OrderToProduct;
import com.tutu.commons.utils.R;
import com.tutu.product.checks.GetProductByCategoryParam;

import java.util.List;

/**
 * @Program: b2c-cloud-store
 * @Description:
 * @Author: JK.TuTu
 * @Version: 1.0
 * @Create: 2022-12-15 10:45
 **/
public interface ProductService extends IService<Product> {


    R getProductInfo(List<String> categoryName);

    Product getProductInfoById(Integer productId);


    R getProductsByCategoryId(GetProductByCategoryParam productParam);


    R getAllCategories();

    R searchProduct(GetProductByCategoryParam productParam);

    void updateProduct(List<OrderToProduct> orderToProducts);
}
